﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using Booky.Common;
using BookyDesktop;
using Newtonsoft.Json;
using System.IO;

namespace Booky.WinFormsClient
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            string[] args = Environment.GetCommandLineArgs();

            SingleInstanceController controller = new SingleInstanceController();
            controller.Run(args);
        }
    }
}
//             static class Program
//    {    
//        [STAThread]
//        static void Main()
//        {
//            string[] args = Environment.GetCommandLineArgs(); 
//            string text = File.ReadAllText(args[1]);

//            // ...
//        }
//    }
//args[0] is the application path.
//args[1] will be the file path.
//args[n] will be any other arguments passed in.
